package com.houseman.workFlow.dao;

import java.util.List;

import com.houseman.workFlow.bean.Line;

public interface LineDao {

	/**
	 * 根据wfID获得线条集合
	 * @return
	 * @throws Exception
	 */
	public List<Line> queryLines(int graphId) throws Exception;
	
	/**
	 * 根据wfID获得线条ID集合
	 * @return
	 * @throws Exception
	 */
	public List<Integer> queryLineIds(int graphId) throws Exception;
	
	/**
	 * 保存流程图信息
	 * @param graph
	 * @throws Exception
	 */
	public void savaLine(List<Line> lines, int graphId) throws Exception;
	
	/**
	 * 更新流程图信息
	 * @param graph
	 * @throws Exception
	 */
	public void updateLine(List<Line> lines) throws Exception;
	
	/**
	 * 根据ID删除线条
	 * @param graph
	 * @throws Exception
	 */
	public void deleteLineById(List<Integer> ids) throws Exception;
	
	/**
	 * 根据WFID删除线条
	 * @param graph
	 * @throws Exception
	 */
	public void deleteLineByGraphId(int graphId) throws Exception;
}
